Skip to main content

Geometry

A lot of mutators expecting value in Geometry format, so lets start with it.

Example geometry: 1000x500shrink = (width)x(height)(modifier)

As you can see, in geometry, we are providing information about our expectations. In our example, resulting image will be max. 1000px wide, max. 500px tall. A ​ shrink​ modifier saying that FileJet should process an original image only when the width is larger then 1000px or height is larger then 500px.

In other words, FileJet will process only images bigger then 1000x500px. Other images will be passed in the original form.

For more information, see the following table:

GeometryDescription widthWidth given, height automatically selected to preserve aspect ratio. xheightHeight given, width automatically selected to preserve aspect ratio. width​xheightMaximum values of height and width given, aspect ratio preserved. widthxheightminMinimum values of width and height given, aspect ratio preserved. width​xheightexactWidth and height emphatically given, original aspect ratio ignored. width​xheightshrinkShrinks an image with dimension(s) larger than the corresponding width and/or height argument(s). width​xxheightenlargeEnlarges an image with dimension(s) smaller than the corresponding width and/or height argument(s). {size}​ {-}x ​{-}yHorizontal and vertical offsets x and y, specified in pixels. Size can be always specified as integer or as a float. Integers are considered as pixels. However, floats are considered as relative size to real image size. For example, resize_1.5 will scale image to 150%.